{template nheader.html}
<div class="page-bar">
	<ul class="page-breadcrumb mylink">
		{$menu.link}

	</ul>
	<ul class="page-breadcrumb myname">
		{$menu.name}
	</ul>
	<div class="page-toolbar">
		<div class="btn-group pull-right">
			<button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {fc_lang('操作菜单')}
				<i class="fa fa-angle-down"></i>
			</button>
			<ul class="dropdown-menu pull-right" role="menu">
				{loop $menu.quick $t}
				<li>
					<a href="{$t.url}">{$t.icon} {$t.name}</a>
				</li>
				{/loop}
				<li class="divider"> </li>
				<li>
					<a href="javascript:window.location.reload();">
						<i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
				</li>
			</ul>
		</div>
	</div>
</div>

<div class="mytopsearch">
	<form method="post" class="row" action="" name="searchform" id="searchform">
		<input name="search" id="search" type="hidden" value="1" />
		{if $is_review && $index}
		<div class="col-md-12">
			{loop $review.option $i $t}
			{if $t.use}
			{$t.name}：{$index['sort'.$i]}&nbsp;&nbsp;&nbsp;
			{/if}
			{/loop}
			{fc_lang('平均分')}：{$index.avgsort}
		</div>
		<div class="bk10"></div>
		{/if}
		<div class="col-md-12">
			<label>
				<select name="data[field]" class="form-control">
					{loop $field $t}
					<option value="{$t.fieldname}" {if $param.field==$t.fieldname}selected{/if}>{$t.name}</option>
					{/loop}
				</select>
			</label>
			<label><i class="fa fa-caret-right"></i></label>
			<label style="padding-right: 20px;"><input type="text" class="form-control" placeholder="{fc_lang('多个Id可以用“,”分隔')}" value="{$param['keyword']}" name="data[keyword]" /></label>

			<label>{fc_lang('录入时间')} ：</label>
			<label>{dr_field_input('start', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>'100')), (int)$param.start)}</label>
			<label><i class="fa fa-minus"></i></label>
			<label style="margin-right:10px">{dr_field_input('end', 'Date', array('option'=>array('format'=>'Y-m-d','width'=>'100')), (int)$param.end)}</label>
			<label><button type="submit" class="btn green btn-sm" name="submit" > <i class="fa fa-search"></i> {fc_lang('搜索')}</button></label>
		</div>
	</form>
</div>

<form action="" method="post" name="myform" id="myform">
	<input name="action" id="action" type="hidden" value="order" />
	<div class="portlet mylistbody">
		<div class="portlet-body">
			<div class="table-scrollable">

				<table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">

					<thead>
					<tr>
						<th></th>
						{if !$param.cid}<th class="{ns_sorting('title')}" name="title">{fc_lang('评论主题')}</th>{/if}
						<th class="{ns_sorting('content')}" name="content">{fc_lang('评论内容')}</th>
						<th class="{ns_sorting('status')}" name="status">{fc_lang('状态')}</th>
						<th class="{ns_sorting('uid')}" name="uid">{fc_lang('作者')}</th>
						<th class="{ns_sorting('loginip')}" name="loginip">{fc_lang('地区')}</th>
						<th class="{ns_sorting('inputtime')}" name="inputtime">{fc_lang('时间段')}</th>
						<th>{fc_lang('操作')}</th>
					</tr>
					</thead>
					<tbody>
					{loop $list $t}
					<tr id="dr_row_{$t.id}">
						<td><input name="ids[]" type="checkbox" class="dr_select toggle md-check" value="{$t.id}" /></td>
						{if !$param.cid}<td><a href="{$t.url}" target="_blank">{dr_keyword_highlight(dr_strcut(dr_clearhtml($t.title), 30), $param.keyword)}</a></td>{/if}
						<td><a href="{$t.url}" target="_blank">{dr_sns_content(dr_keyword_highlight(dr_strcut(dr_clearhtml($t.content), 70), $param.keyword))}</a></td>
						<td>{if $t.status}<span class="label label-sm label-success">{fc_lang('已审核')}</span>{else}<span class="label label-sm label-danger">{fc_lang('未审核')}</span>{/if}</td>
						<td>{if $t.uid}<a href="javascript:;" onclick="dr_dialog_member('{$t.uid}')">{dr_strcut($t.author, 10)}</a>{else}{fc_lang('游客')}{/if}</td>
						<td><a href="http://www.baidu.com/baidu?wd={$t.inputip}" target="_blank">{$ci->dip->address($t.inputip)}</a></td>
						<td>{dr_date($t.inputtime, NULL, 'red')}</td>
						<td>
							<a class="btn green btn-xs" href="{$show_url}&id={$t.id}"> <i class="fa fa-edit"></i> {fc_lang('查看/修改')}</a>
						</td>
					</tr>
					{/loop}
					<tr class="mtable_bottom">
						<th width="20" ><input name="dr_select" class="toggle md-check" id="dr_select" type="checkbox" onClick="dr_selected()" /></th>
						<td colspan="99" >
							<button data-toggle="confirmation" id="dr_confirm_set_all" data-original-title="{fc_lang('您确定要这样操作吗？')}" type="button" class="btn red btn-sm" name="option"> <i class="fa fa-trash"></i> {fc_lang('删除')}</button>
							<button data-toggle="confirmation" id="dr_confirm_verify" data-original-title="{fc_lang('您确定要这样操作吗？')}" type="button" class="btn green btn-sm" name="option"> <i class="fa fa-edit"></i> {fc_lang('审核')}</button>
						</td>
					</tr>
					</tbody>
				</table>
		</div>

	</div>
</div>

</form>
<div id="pages"><a>{fc_lang('共%s条', $total)}</a>{$pages}</div>


{template nfooter.html}